package com.qyer.commons.http;

import java.util.Collections;

/**
 * User: Z J Wu Date: 2016/02/23 Time: 15:00 Package: com.qyer.commons.http
 */
public class ErrorHttpResult extends HttpResult {

  public static HttpResult createErrorResult(String serviceName, String namespace, String requestId,
                                             long timeuse, int errorCode, String errorMessage) {
    return new ErrorHttpResult(serviceName, namespace, errorCode, errorMessage, timeuse,
                               new InnerHttpResult(requestId, DEFAULT_STRA,
                                                   Collections.emptyList()));
  }

  public ErrorHttpResult() {
  }

  public ErrorHttpResult(String serviceName, String namespace, int status, String msg, long timeuse,
                         InnerHttpResult data) {
    super(serviceName, namespace, status, msg, timeuse, data);
  }

}
